var lists = [{
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_bingchuanghao: '3028',
    p_doctor: '张医生',
    p_hushi: '王护士',
    p_shi: '外科',
    p_time_ru: '2018-12-4',
    p_leixing: '已审核',
    p_time_chu: '2019-2-10',
}, {
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_bingchuanghao: '3028',
    p_doctor: '张医生',
    p_hushi: '王护士',
    p_shi: '外科',
    p_time_ru: '2018-12-4',
    p_leixing: '已审核',
    p_time_chu: '2019-2-10',
}, {
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_bingchuanghao: '3028',
    p_doctor: '张医生',
    p_hushi: '王护士',
    p_shi: '外科',
    p_time_ru: '2018-12-4',
    p_leixing: '已审核',
    p_time_chu: '2019-2-10',
}, {
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_bingchuanghao: '3028',
    p_doctor: '张医生',
    p_hushi: '王护士',
    p_shi: '外科',
    p_time_ru: '2018-12-4',
    p_leixing: '已审核',
    p_time_chu: '2019-2-10',
}, {
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_bingchuanghao: '3028',
    p_doctor: '张医生',
    p_hushi: '王护士',
    p_shi: '外科',
    p_time_ru: '2018-12-4',
    p_leixing: '已审核',
    p_time_chu: '2019-2-10',
}, {
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_bingchuanghao: '3028',
    p_doctor: '张医生',
    p_hushi: '王护士',
    p_shi: '外科',
    p_time_ru: '2018-12-4',
    p_leixing: '已审核',
    p_time_chu: '2019-2-10',
}, {
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_bingchuanghao: '3028',
    p_doctor: '张医生',
    p_hushi: '王护士',
    p_shi: '外科',
    p_time_ru: '2018-12-4',
    p_leixing: '已审核',
    p_time_chu: '2019-2-10',
}, {
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_bingchuanghao: '3028',
    p_doctor: '张医生',
    p_hushi: '王护士',
    p_shi: '外科',
    p_time_ru: '2018-12-4',
    p_leixing: '已审核',
    p_time_chu: '2019-2-10',
}, {
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_bingchuanghao: '3028',
    p_doctor: '张医生',
    p_hushi: '王护士',
    p_shi: '外科',
    p_time_ru: '2018-12-4',
    p_leixing: '已审核',
    p_time_chu: '2019-2-10',
}, {
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_bingchuanghao: '3028',
    p_doctor: '张医生',
    p_hushi: '王护士',
    p_shi: '外科',
    p_time_ru: '2018-12-4',
    p_leixing: '已审核',
    p_time_chu: '2019-2-10',
}]
var otable = document.getElementsByTagName('table')[0];
for (var i = 0; i < lists.length; i++) {
    var otr = document.createElement('tr');
    otr.innerHTML += '<td><input type="checkbox" name="" id=""></td><td>' + lists[i].p_id + '</td><td>' + lists[i].p_name + '</td><td>' + lists[i].p_sex + '</td><td>' + lists[i].p_age + '</td><td>' + lists[i].p_bingchuanghao + '</td><td>' + lists[i].p_doctor + '</td><td>' + lists[i].p_hushi + '</td><td>' + lists[i].p_time_ru + '</td><td>' + lists[i].p_shi + '</td><td>' + lists[i].p_leixing + '</td><td>' + lists[i].p_time_chu + '</td><td><strong><a href="discharge_printing.html"><i class="fa fa-pencil"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-times-circle-o"></i></strong></td>';
    otable.appendChild(otr);
}